import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2025-07-17
 * Time: 20:46
 */
public class Test58 {
    static String[] hash = {"","","abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"};
    static List<String> ret;
    static StringBuilder path;
    public static List<String> letterCombinations(String digits) {
        ret = new ArrayList<>();
        path = new StringBuilder();
        if(digits.length() == 0) {
            return ret;
        }
        dfs(digits,0);
        return ret;
    }

    public static void dfs(String digits,int pos) {
        if(pos == digits.length()) {
            ret.add(path.toString());
            return;
        }
        String cur = hash[digits.charAt(pos)-'0'];
        for(int i = 0; i < cur.length(); i++) {
            path.append(cur.charAt(i));
            dfs(digits,pos+1);
            path.deleteCharAt(path.length()-1);
        }
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String dig = sc.nextLine();
        List<String> ret = letterCombinations(dig);
        System.out.println(ret);
    }
}
